package
{
	import com.tommy.ddp.DdpContainer;
	
	import starling.display.Sprite;
	import starling.events.Event;
	
	public class Game extends Sprite
	{
		private static var _instance:Game;
		
		public var container:DdpContainer;
		
		public function Game()
		{
			super();
			
			_instance = this;
			this.addEventListener(Event.ADDED_TO_STAGE,onAdded);
		}
		public static function get instance():Game
		{
			return _instance;
		}
		
		private function onAdded(event:Event):void
		{
			container = new DdpContainer;
			container.x = 100;
			container.y = 100;
			addChild(container);
		}
		
	}
}